
			<div class="panel panel-success">
				<div class="panel-heading">
					表单内容管理
				</div>
				<div class="panel-body table-responsive">
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">姓名/手机 显示位置</label>
						<div class="col-xs-12 col-sm-9">
							<label class="radio-inline"><input type="radio" name="paixu" value="0" {if empty($activity) || $activity['paixu'] == 0} checked="checked"{/if} onclick="$('#paixu').show();" /> 页面顶部</label>
							<label class="radio-inline"><input type="radio" name="paixu" value="1" {if $activity['paixu'] == 1} checked="checked"{/if} onclick="$('#paixu').show();" /> 页面底部</label>
							<label class="radio-inline"><input type="radio" name="paixu" value="2" {if $activity['paixu'] == 2} checked="checked"{/if} onclick="$('#paixu').hide();" /> 关闭-使用自定义字段</label>
						</div>
					</div>
					<table class="table table-hover">
						<thead>
						<tr>
							<th style="width:300px;">自定义字段<span class="pull-right">排序</span></th>
							<th style="width:60px;" class="text-center">必填</th>
							<th style="width:180px;" class="text-center text-danger">特殊属性</th>
							<th style="width:120px;">类型</th>
							<th style="width:120px;">关联会员数据</th>
							<th class="text-right" style="width:100px;">操作</th>
						</tr>
						</thead>
						<tbody id="paixu" {if $activity['paixu'] == 2}style="display:none"{/if}>
						<tr>
							<td><input type="text" class="form-control" name="member" value="{$activity['member']}" /></td>
							<td style="text-align:center;"><input type="checkbox" title="必填项" checked="checked" disabled="true" /></td>
							<td style="text-align:center;"></td>
							<td>
								<select class="form-control" readonly>
									<option>字串(text)</option>
								</select>
							</td>
							<td>
								<select class="form-control" readonly>
									<option>真实姓名</option>
								</select>
							</td>
							<td>
							</td>
						</tr>
						<tr>
							<td><input type="text" class="form-control" name="phone" value="{$activity['phone']}" /></td>
							<td style="text-align:center;"><input type="checkbox" title="必填项" checked="checked" disabled="true" /></td>
							<td style="text-align:center;"></td>
							<td>
								<select class="form-control" readonly>
									<option>数字(number)</option>
								</select>
							</td>
							<td>
								<select class="form-control" readonly>
									<option>手机号码</option>
								</select>
							</td>
							<td>
							</td>
						</tr>
						</tbody>
						<tbody id="re-items">
						{loop $ds $key $r}
						<tr>
							<td>
								<div class="input-group">
									<input name="refid[]" type="hidden" class="form-control" value="{$r['refid']}"/>
									<input name="title[]" type="text" class="form-control" value="{$r['title']}"/>
									<span class="input-group-addon"></span>
									<input type="text" name="displayorder[]" class="form-control" value="{$r['displayorder']}" />
								</div>							
							</td>
							<td style="text-align:center;"><input name="essential[]" type="checkbox" title="必填项" {if $r['essential']} checked="checked"{/if}/></td>
							<td>
								<div class="btn-group {if $r['type']!='text'}hide{/if}" data-toggle="buttons" id="only_f{$r['refid']}">
									<label class="btn btn-default btn-sm {if $r['only'] == 1}active{/if}"><input type="radio" name="only[]" value="1" {if 1 == $r['only']}checked="checked"{/if}>启用</label>
									<label class="btn btn-default btn-sm {if $r['only'] == '0'}active{/if}"><input type="radio" name="only[]" value="0" {if 0 == $r['only']}checked="checked"{/if}>关闭</label>
									<span class="btn btn-info btn-sm" disabled>验证唯一</span>
								</div>
								<div class="input-group re-image {if $r['type']!='image'}hide{/if}" id="image_f{$r['refid']}">
									<input type="text" name="image[]" value="{$r['image']}" class="form-control" autocomplete="off" style="width:120px;">
									<span class="input-group-btn">
										<button class="btn btn-default" type="button" {if !$hasData}onclick="showImageDialog(this);"{/if}>示例图</button>
									</span>
								</div>
							</td>
							<td>
								<select name="type[]" class="form-control" onclick="setClass(this,'f{$r['refid']}');">
									{loop $types $k $v}
									<option value="{$k}"{if $k == $r['type']} selected="selected"{/if}>{$v}</option>
									{/loop}
								</select>
							</td>
							<td>
								<select name="bind[]" class="form-control">
									<option value="">不关联</option>
									{loop $fields $k $v}
									<option value="{$k}"{if $k == $r['bind']} selected="selected"{/if}>{$v}</option>
									{/loop}
								</select>
								<input type="hidden" name="value[]" value="{$r['value']}"/>
								<input type="hidden" name="desc[]" value="{$r['description']}"/>
								<input type="hidden" name="loc[]" value="{$r['loc']}"/>
								<input type="hidden" name="essentialvalue[]" value="{if $r['essential']}true{else}false{/if}"/>
								<input type="hidden" name="onlyvalue[]" value="{if $r['only']}true{else}false{/if}"/>
							</td>
							<td class="text-right">
								{if !$hasData}
								<a href="javascript:;" data-toggle="tooltip" data-placement="bottom" title="设置详细信息" onclick="setValues(this);" class="btn btn-warning btn-sm"><i class="fa fa-edit"></i></a> &nbsp;
								<a href="javascript:;" onclick="deleteItem(this)" data-toggle="tooltip" data-placement="bottom" title="删除此字段" class="btn btn-default btn-sm"><i class="fa fa-times"></i></a>
								{/if}
							</td>
						</tr>
						{/loop}
						</tbody>
					</table>
				</div>
			</div>
			<div class="alert" style="padding:0;">
					{if $hasData}
					<h3 class="text-danger">已经存在表单数据, 不能修改、添加自定义字段</h3>
					{else}
					<a href="javascript:;" class="btn btn-success" onclick="addItem();"><i class="fa fa-plus" title="添加自定义字段"></i> 添加自定义字段</a>
					<span class="pull-right" style="line-height:35px;">请填写排序，导出CSV文件的标题与内容才能更好的对应</span>
					{/if}
			</div>
			<blockquote class="alert-danger">
				<p>表单成功启动以后(已经有粉丝用户提交表单信息), 将不能再修改自定义字段, 请认真、仔细编辑.</p>
				<small>如果需要关联生日，字段类型设置为日历，只能设置关联一次生日，超出报错。</small>
				<small>上传图片使用示例图请点击操作栏的 橙色按钮</small>
				<small>所有自定义字段支持自定义提示文字，请点击操作栏的 橙色按钮</small>
				<small class="text-danger">验证唯一：填写的内容在表单是唯一的不允许重复的，用于报名验证身份证等作用，类型必须为 字符串(text)</small>
			</blockquote>
			<div class="panel" style="background-color:#9e9e9e;color:#fff;">
					<table class="table table-hover">
						<thead>
						<tr>
							<th style="width:200px;">扩展功能</th>
							<th style="width:120px;" class="text-center">状态</th>
							<th style="width:200px;">介绍</th>
							<th class="text-right" style="width:100px;">录音回复</th>
						</tr>
						</thead>
						<tbody style="color:#333;">
						<tr style="background-color:#e3f2fd;">
							<td><input type="text" name="pluraltit" value="{$activity['pluraltit']}" class="form-control" placeholder="多图上传"/></td>
							<td class="text-center">
								<div class="btn-group" data-toggle="buttons">
									<label class="btn btn-default {if $activity['plural'] == 1}active{/if}"><input type="radio" name="plural" value="1" {if $activity['plural'] == 1} checked="checked"{/if} >启用</label>
									<label class="btn btn-default {if $activity['plural'] == 0}active{/if}"><input type="radio" name="plural" value="0" {if empty($activity) || $activity['plural'] == 0} checked="checked"{/if}>关闭</label>
								</div>
							</td>
							<td colspan="2">支持上传多张图片</td>
						</tr>
						<tr style="background-color:#e3f2fd;">
							<td><input type="text" name="voice" value="{$activity['voice']}" class="form-control" placeholder="录音标题"/></td>
							<td class="text-center">
								<div class="btn-group" data-toggle="buttons">
									<label class="btn btn-default {if $activity['ivoice'] == 1}active{/if}"><input type="radio" name="ivoice" value="1" {if $activity['ivoice'] == 1} checked="checked"{/if} >启用</label>
									<label class="btn btn-default {if $activity['ivoice'] == 0}active{/if}"><input type="radio" name="ivoice" value="0" {if empty($activity) || $activity['ivoice'] == 0} checked="checked"{/if}>关闭</label>
								</div>
							</td>
							<td>
								<div class="input-group">
									<input type="text" name="voicedec" class="form-control" value="{$activity['voicedec']}" />
								</div>
							</td>
							<td>
								<div class="btn-group" data-toggle="buttons">
									<label class="btn btn-default {if $activity['isvoice'] == 1}active{/if}"><input type="radio" name="isvoice" value="1" {if $activity['isvoice'] == 1} checked="checked"{/if} >启用</label>
									<label class="btn btn-default {if $activity['isvoice'] == 0}active{/if}"><input type="radio" name="isvoice" value="0" {if empty($activity) || $activity['isvoice'] == 0} checked="checked"{/if}>关闭</label>
								</div>
							</td>
						</tr>
						<tr style="background-color:#e3f2fd;">
							<td><span class="form-control" disabled>验证唯一提示</span></td>
							<td colspan="3">
								<input type="text" class="form-control" placeholder="" name="onlytit" value="{$par['onlytit']}" />
							</td>
						</tr>
					</table>
			</div>
		
				<!--
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">获取用户地理位置</label>
                    <div class="col-xs-12 col-sm-9">
					<div class="btn-group" data-toggle="buttons">					  
						<label class="btn btn-default {if $activity['isloc'] == 1}active{/if}"><input type="radio" name="isloc" value="1" {if $activity['isloc'] == 1} checked="checked"{/if} >启用</label>
						<label class="btn btn-default {if $activity['isloc'] == 0}active{/if}"><input type="radio" name="isloc" value="0" {if empty($activity) || $activity['isloc'] == 0} checked="checked"{/if}>关闭</label>
						<span class="btn btn-success" disabled>仅限weui前端系列模板有效</span>
					</div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-xs-12 col-sm-9">
					<div class="input-group">
						<input type="text" name="adds" class="form-control" value="{$activity['adds']}" />
						<span class="input-group-addon btn btn-success" style="color:#fff;" disabled>地址名称：联系地址，出生地址</span>
					</div>
                    </div>
                </div>
				-->